.mqx-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 2.2rem;
  background-color: var(--default-color);
  border: 1px solid #dfdfdf;
  border-radius: 4px;
  padding: 4px 0;
  transition: all 0.5s ease;

  &:hover {
    border-color: var(--blue-3);
    box-shadow: 0 0 10px -4px var(--primary-color);
  }

  & :first-child {
    line-height: 100%;
    white-space: nowrap;
    margin-left: 12px;
  }

  & :last-child {
    margin-right: 12px;
  }

  span {
    color: #333333;
  }

  input {
    height: 100%;
    color: #505050;
    margin: 0 8px 0 12px;
  }
}

// 输入框
input {
  width: 100%;
  background-color: transparent;
  border: none;
  padding: 0;
  outline: none;

  &:focus {
    color: var(--primary-color);
    border-color: var(--blue-3);

    // 非禁用
    ~ [disabled='false'] {
      color: var(--primary-color);
    }
  }

  &::placeholder {
    //position: absolute;
    //top: 50%;
    //left: 12px;
    //transform: translateY(-50%);
    //padding: 0 4px;
  }
}

//input[disabled] {
//  border: 1px solid #dfdfdf;
//}

.mqx-radio {
  display: flex;
  align-items: center;

  input[type='radio'] {
    width: 20px;
    height: 20px;
    margin: 0 6px 0 0;
  }
}
